﻿using System;
using Loki.UI;
using Loki.UI.Win;
using Luna.UI.Users;

namespace Luna.UI.Win.Users
{
    /// <summary>
    /// User list view.
    /// </summary>
    public partial class UserListView : LunaView, IView<UserListViewModel>
    {
        public UserListView()
        {
            InitializeComponent();
            BindingChanged += new EventHandler(UserListView_BindingChanged);
        }

        private void UserListView_BindingChanged(object P_Sender, EventArgs e)
        {
            VIEW_Users.Configure(ViewModel.Users);
        }

        public new UserListViewModel ViewModel
        {
            get { return (UserListViewModel)base.ViewModel; }
            set { base.ViewModel = value; }
        }
    }
}
